# -*- coding: utf-8 -*-
"""
Created on Sun Apr 27 08:47:47 2025
求数的阶乘
@author: Bradley
"""
def factorial(x):
    m=1
    if x==0:
        return 1
    for i in range(1,x+1):
        m*=i
    return m
x=10
v=factorial(x)
print('%d的阶乘是%d'%(x,v))
